package com.hege.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author hege
 * @Date 2020/11/22 20:28
 * @Version 1.0
 */
@Controller
public class ObjectConfigTestController {

    @Autowired
    private Test test;

    @RequestMapping("/test")
    @ResponseBody
    public String configTest() {

        return test.getName() + ":" + test.getLevel();
    }
}
